package Prototype;

/**
 * 抽象类的实体类
 */
public class Rectangle extends Shape{

    public Rectangle(){
        type = "Rectangle";
    }
    @Override
    void draw() {
        System.out.printf("Inside Rectangle::draw() method");
    }

    public class Square extends Shape{
        public Square(){
            type = "Square";
        }
        @Override
        void draw() {
            System.out.printf("Inside Square::draw() method");
        }
    }

    public class Circle extends Shape{
        public Circle(){
            type = "Circle";
        }
        @Override
        void draw() {
            System.out.printf("Inside Circle::draw() method");
        }
    }
}
